package linuxbox.exception;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2002</p>
 * <p>Company: </p>
 * @author unascribed
 * @version 1.0
 */

public class AccessRightException extends LinuxboxException
{
  String userid;
  String module;
  String action;
  String page;
  String message;

  public AccessRightException(String Userid, String Module, String Action, String Page, String Message)
  {
    super(ExceptionHelper.SYSTEM, "S000013");
    userid = Userid;
    module = Module;
    action = Action;
    page = Page;
    message = Message;
  }

  public String getMessage()
  {
    return "No access rights for User:" + userid + " Accessing module:"
        +module+" for Action:"+action+" or Page:" + page + " Message:"+message;
  }
}
